#include <stdio.h>

/*
 * iterative deepening
 * a > b, and d is deep
 */
int id(int a, int b, int d)
{
    int i, begin, end;
    if (d == 1) {
        if (a%b) { return 0; }
        else { printf("1/%d", a/b); return 1; }
    }
    begin = a/b + 1;
    end = a/b*d + 1;
    for (i = begin; i <= end; i++) {
        int a2, b2;
        a2 = a*i; /* may overflow */
        b2 = b*i - a; /* may overflow */
        if (id(a2, b2, d-1)) {
            printf(" + 1/%d", i);
            return 1;
        }
    }
    return 0;
}

int main()
{
    int a, b, d;
    if (scanf("%d%d", &b, &a) == 2) {
        for (d = 1; d <= 10; d++) {
            if (id(a, b, d)) {
                printf("\n");
                break;
            }
        }
    }
    return 0;
}
